home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
e
/
epp_v1_1.lha
/
EPP
/
PModules
/
eTimer.doc
< prev
next >
Wrap
Text File
|
1993-06-26
|
2KB
|
23 lines
/*------------------------------------------------------------------------*/
/* */
/* USING eTimer */
/* */
/* The first proc calling et_startTime() will cause the invocation of */
/* et_init(). This call should contain a larger id value than any other */
/* since this value is used to dimension the arrays. */
/* */
/* Each PROC being timed should call et_startTimer() immediately upon */
/* entering the PROC, and call et_stopTimer() just before exiting the */
/* PROC. Calls to these two functions require a unique proc-id as */
/* parameter (0-n.) It is probably best to set up ENUMS for this and */
/* just convert the PROC name to uppercase. et_startTimer() accepts a */
/* POINTER TO STRING that is printed by et_report(), which is better than */
/* just a proc-id. NIL *can* be passed if you don't want to bother with */
/* the proc-names. */
/* et_report() is automatically called upon the exiting call to */
/* et_stopTimer() (which should be at the end of PROC main().) Actually, */
/* this timing algorithm should work just as well for timing parts of a */
/* program .vs. the whole thing, as long as the calls to et_startTimer() */
/* and et_stopTimer() are balanced. */
/*------------------------------------------------------------------------*/